package com.novax.ex.activity.infrastructure.mapper;

import com.novax.ex.activity.infrastructure.entity.OperationV2Rule;
import com.novax.ex.common.base.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description
 * @Author ChenXi
 * @Date 2024/04/25/14:31
 */
 

public interface OperationV2RuleMapper extends BaseMapper {

    /**
     * @param operationId
     * @Description: 查询规则多语言配置
     * @Author: ChenXi
     * @Date: 2024/4/25 15:48
     * @return: java.util.List<com.novax.ex.activity.infrastructure.entity.OperationV2Rule>
     **/
    List<OperationV2Rule> selectListFromOperationId(@Param("operationId") Long operationId);


    /**
     * @Description: 判断此活动id和语言是否已配置文案
     * @Author: ChenXi
     * @Date:  2023/4/19 11:23
     * @param operationId
     * @param language
     * @return: java.lang.Integer
     **/
    Long queryOperationIdAndLanguage(@Param("operationId") Long operationId, @Param("language")String language);

}